import request from "@/util/request";
//获取购物车列表
export const getCart=()=>{
	return request({
	    url: '/applet/tradeCart/list',
	    method: 'get',
	})
}
//向购物车加入数据
export const addDataCart=(data)=>{
	return request({
	    url: '/applet/tradeCart',
	    method: 'post',
		data
	})
}
//删除购物车
export const deleteDataCart=(id)=>{
	return request({
	    url: '/applet/tradeCart/'+id,
        method: 'DELETE',
	})
}